﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ArkadiaOsKernel.Core.Script
{
    class Compiler
    {
        private static int i;
        private static string[] codesplit;
        private static string code;
        private static string holder;
        public void GenerateCode(string code)
        {
            codesplit = code.Split('\n');
            code = "";
            holder = "";
            for (i = 0; i < codesplit.Length; i++)
            {
                holder = codesplit[i].ToLower();
                #region command
                if (holder.Length > 4 && holder.Substring(0, 4) == "posr")
                {
                    code += "1 " + holder.Split(' ')[1] + " " + holder.Split(' ')[2] + "\n";
                }
                #endregion
            }
        }
    }
}
